//
//  CalendarAppearTranstion.h
//  QSMusicPillow
//
//  Created by wellen on 2022/10/18.
//

/*
 参考 BTTransition, pod 'BTTransition', '~> 0.1.1'
 */

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


typedef enum : NSUInteger {
    QSCoverVerticalTransitionFromBottomToUp,
    QSCoverVerticalTransitionCenterScale,
    QSCoverVerticalTransitionFromUpToBottom,
} QSCoverVerticalTransitionType;

@interface QSCoverVerticalTransition : NSObject<UIViewControllerTransitioningDelegate,UIViewControllerAnimatedTransitioning>

@property(nonatomic, assign)QSCoverVerticalTransitionType transitionType;
@property(nonatomic, assign)CGRect startFrame;
@property(nonatomic, assign)CGFloat showAlpha;//默认0.4
@property(nonatomic, assign)BOOL isBlankClick;//默认YES, 设NO则点击空白处页面不会消失
@property(nonatomic, copy)void (^dissMissBlock)(void);

/*默认transitionType=QSCoverVerticalTransitionCenterScale*/
- (instancetype)initPresentViewController:(UIViewController*)viewController;

- (instancetype)initPresentViewController:(UIViewController*)viewController transitionType:(QSCoverVerticalTransitionType)transitionType;

- (instancetype)initPresentViewController:(UIViewController*)viewController transitionType:(QSCoverVerticalTransitionType)transitionType withDragDismissEnabal:(BOOL)enabel;

@end


NS_ASSUME_NONNULL_END
